from flask import Flask, url_for

app = Flask(__name__)


@app.route('/url/')
def get_url():
    # 根据ID显示文章，ID是整型数据
    return url_for('show_post', post_id=2)


if __name__ == '__main__':
    app.run(debug=True)
